//
// Created by Tony on 2024/7/24.
//

#ifndef RUNTIME_RETURN_H
#define RUNTIME_RETURN_H

#include "Instruction.h"

namespace Runtime {

class RETURN final : public NoOperandsInstruction {

public:
    RETURN() : NoOperandsInstruction(__func__, OpCode::RETURN) {}

    void execute(RtData::Frame& frame) override { frame.getStack()->pop(); }
};

} // namespace Runtime

#endif // RUNTIME_RETURN_H